<?php
/**
 * @author GhostWei
 * @date Sep 21, 2012
 */
class oauth_response_google extends oauth_api_response {
	
	public function getAvatar() {
		return $this->get('picture', resource_config_avatar::noMedia());
	}
	
	public function getNickname() {
		return $this->get('name');
	}
	
	public function getGender() {
		if($this->get('gender') == 'male') {
			$gender = 1;
		} elseif($this->get('gender') == 'female') {
			$gender = 2;
		} else {
			$gender = 0;
		}
		return $gender;
	}
	
	public function getUid() {
		return $this->get('id', '');
	}
	public function getTopics(){}
	public function getUser(){}
	public function getTweets(){}
	public function getTopicTweetsPaginator(){}
	public function getUserTweetsPaginator(){}
	
}
